#ifndef string_ex_h
#define string_ex_h

#include "stdint.h"

#ifndef NULL
#define NULL ((void *)0)
#endif

/*-------------------------------------十六进制------------------------------------*/
char *float_to_str_hex(float num, char *buf, uint8_t buf_size);
char *uint_to_str_hex(uint32_t num, char *buf, uint8_t buf_size);

/*-------------------------------------十进制------------------------------------*/
char *uint_to_str_dec(uint32_t num, char *buf, uint8_t buf_size);
char *int_to_str_dec(int32_t num, char *buf, uint8_t buf_size);
char *float_to_str_dec(float num, char *buf, uint8_t buf_size, uint8_t point_num);
#endif
